<!--{template header}-->


<!--{if $op == 'form'}-->

<script type="text/javascript" src="source/js/calendar.js"></script>
<script type="text/javascript">
	var calendar = new Calendar("calendar");
	document.write(calendar);
</script>

<!--{if $event_type == 3}-->
<h2 class="title"><img src="image/app/unreal_3.gif" />武林大会</h2>

<div style="padding-left:60px;">

<div style="border-bottom:1px dashed #CCC; color:#FF6600;font-size:14px;width:606px;"><strong>武林大会，全民参与！要发起武林大会，您需要准备一定的奖金来奖励各路英雄！</strong></div>

<script type="text/javascript">
function ckunreal_3(){
	if(trim_($('ev_title').value) == ''){
		return _re('大会主题必须填写');
	}
	
	if($('ev_info').value == '0'){
		return _re('请选择大会项目');
	}

	if(trim_($('ev_pay').value) == '' ){
		return _re('请输入大会奖金');
	}

	if(!parseInt($('ev_pay').value)){
		return _re('奖金必须为整数');
	}
	
	if( trim_($('ev_date').value) == ''){
		return _re('请选择大会日期');
	}
	
	if( trim_($('ev_addr').value) == ''){
		return _re('请填写大会地点');
	}
	
	if(trim_($('ev_x2').value) == ''){
		return _re('请详细填写大会说明');
	}
	
	if(trim_($('ev_x3').value) == ''){
		return _re('请填写联系人');
	}
	
	if(trim_($('ev_x4').value) == ''){
		return _re('请填写联系电话');
	}
	
	return true ;
	
	function _re(tip){
		alert(tip);
		return false; 
	}
}

</script>

<form method="post" id="" name="" action="cp.php?ac=unreal&op=send" onsubmit="return ckunreal_3();">

	<table cellpadding="2" cellspacing="2" border="0" style="margin:0 30px;">
		<tr>
			<td style="height:34px;width:74px;"><strong>大会主题：</strong></td>
			<td>
				<input type="text" class="input" id="ev_title" name="ev_title" style="width:404px;" />
			</td>
		</tr>
		<tr>
			<td style="height:34px;"><strong>大会项目：</strong></td>
			<td>
			<select name="upid" id="selectTypeTop">
				<option value="0">选择大项</option>
			</select>
			<select name="ev_info" id="ev_info">
				<option value="0">请选择小项</option>
			</select>
			</td>
		</tr>
		<tr>
			<td style="height:34px;"><strong>大会奖金：</strong></td>
			<td>
			<input type="text" name="ev_pay" id="ev_pay" class="input" style="width:54px;" /> RMB
			<span class="gray">请填写一个整数</span>
			</td>
		</tr>
		
		<tr>
			<td style="height:34px;"><strong>大会时间：</strong></td>
			<td>
			<input type="text" class="input" style="width:80px;" name="ev_date" id="ev_date" onclick="calendar.showMoreDay = false;calendar.show(this);"" value="<!--{$tomorrow}-->" />
			<select id="ev_hour" name="ev_hour">
			<!--{$event_hour_select}-->
			</select> 时
			<select id="ev_minute" name="ev_minute">
			<!--{$event_min_select}-->
			</select> 分
			</td>
		</tr>
		<tr>
			<td style="height:34px;"><strong>大会地点：</strong></td>
			<td>
			<input type="text" style="width:304px;"  class="input" name="ev_addr" id="ev_addr" value="" />
			</td>
		</tr>
		
		<tr>
			<td valign="top" style="height:86px;padding-top:11px;"><strong>奖项设置：</strong></td>
			<td>
			<textarea name="ev_x1" id="ev_x1" style="width:504px; height:74px;"></textarea>
			</td>
		</tr>

		
		<tr>
			<td valign="top" style="height:164px;padding-top:6px;""><strong>大会说明：</strong></td>
			<td>
			<div class="gray" style="padding-left:0;">请详细描述要发起的武林大会的细节</div>
			<textarea name="ev_x2" id="ev_x2" style="width:504px; height:144px;"></textarea>
			</td>
		</tr>
	</table>
	
	
	<div class="box_s8" style="width:606px;">
		<div class="title orange fs-14"><strong>联系方式</strong></div>
		<div class="box_s8_in" style="padding-left:70px;">
		
			<table>		
				<tr>
					<td style="height:34px;width:64px;"><strong>联系人：</strong></td>
					<td style="width:140px;">
						<input type="text" class="input" name="ev_x3" id="ev_x3" style="width:104px;" />
					</td>
					<td style="width:80px;"><strong>联系电话：</strong>	</td>
					<td>
						<input type="text" class="input" name="ev_x4" id="ev_x4" style="width:174px;" />
					</td>
				</tr>
			</table>
		</div>
	</div>
	
	<input type="hidden" name="refer" value="$_SGLOBAL[refer]">
	<input type="hidden" name="unrealsubmit" value="true" />

	<div style="text-align:center;padding:11px;width:604px;">
		<input type="hidden" name="event_type" value="<!--{$event_type}-->" />
		<input type="submit" style="height:40px; width:114px;" value="发起武林大会" />
	</div>
</form>

</div>

<!--{elseif $event_type == 4}-->

<h2 class="title"><img src="image/app/unreal_3.gif" />悬赏令</h2>

<div style="padding-left:60px;">
<div style="border-bottom:1px dashed #CCC; color:#FF6600;font-size:14px;width:606px;"><strong>悬赏令，挑选最优秀的教头！要发起悬赏令，您需要支付一定的报酬给那个最优秀的教头！</strong></div>


<script type="text/javascript">
function ckunreal_4(){
	if(trim_($('ev_title').value) == ''){
		return _re('悬赏主题必须填写');
	}
	
	if($('ev_info').value == '0'){
		return _re('请选择悬赏项目');
	}

	if(trim_($('ev_pay').value) == '' ){
		return _re('请输入悬赏奖金');
	}

	if(!parseInt($('ev_pay').value)){
		return _re('悬赏奖金必须为整数');
	}
	
	if( trim_($('ev_date').value) == ''){
		return _re('请选择事件时间');
	}
	
	if( trim_($('ev_addr').value) == ''){
		return _re('请填写事件地点');
	}
	
	if(trim_($('ev_x2').value) == ''){
		return _re('请详细填写事件说明');
	}
	
	if(trim_($('ev_x3').value) == ''){
		return _re('请填写联系人');
	}
	
	if(trim_($('ev_x4').value) == ''){
		return _re('请填写联系电话');
	}
	
	return true ;
	
	function _re(tip){
		alert(tip);
		return false; 
	}
}

</script>


<form method="post" id="" name="" action="cp.php?ac=unreal&op=send" onsubmit="return ckunreal_4();">

	<table cellpadding="2" cellspacing="2" border="0" style="margin:0 30px;">
		<tr>
			<td style="height:34px;width:74px;"><strong>悬赏主题：</strong></td>
			<td>
				<input type="text" class="input" id="ev_title" name="ev_title"  style="width:404px;" />
			</td>
		</tr>
		<tr>
			<td style="height:34px;"><strong>悬赏项目：</strong></td>
			<td>
			<select name="upid" id="selectTypeTop">
				<option value="0">选择大项</option>
			</select>
			<select name="fieldid" id="ev_info">
				<option value="0">请选择小项</option>
			</select>
			</td>
		</tr>
		<tr>
			<td style="height:34px;"><strong>悬赏奖金：</strong></td>
			<td>
			<input type="text" class="input" id="ev_pay" name="ev_pay"  style="width:54px;" /> RMB
			</td>
		</tr>
		
		<tr>
			<td style="height:34px;"><strong>事件时间：</strong></td>
			<td>
			<input type="text" class="input" style="width:80px;" name="ev_date" id="ev_date" onclick="calendar.showMoreDay = false;calendar.show(this);"" value="<!--{$tomorrow}-->" />
			<select id="ev_hour" name="ev_hour">
			<!--{$event_hour_select}-->
			</select> 时
			<select id="ev_minute" name="ev_minute">
			<!--{$event_min_select}-->
			</select> 分
			</td>
		</tr>
		<tr>
			<td style="height:34px;"><strong>事件地点：</strong></td>
			<td>
			<input type="text" style="width:304px;"  class="input" name="ev_addr" id="ev_addr" value="" />
			</td>
		</tr>
		
		<tr>
			<td valign="top" style="height:164px;padding-top:6px;"><strong>事件说明：</strong></td>
			<td>
			<div class="gray" style="padding-left:0;">请详细描述该任务的具体情况</div>
			<textarea name="ev_x2" id="ev_x2" style="width:504px; height:144px;"></textarea>
			</td>
		</tr>
				
	</table>
	
	<div class="box_s8" style="width:606px;">
		<div class="title orange fs-14"><strong>联系方式</strong></div>
		<div class="box_s8_in" style="padding-left:70px;">
		
			<table>		
				<tr>
					<td style="height:34px;width:64px;"><strong>联系人：</strong></td>
					<td style="width:140px;">
						<input type="text" class="input" name="ev_x3" id="ev_x3" style="width:104px;" />
					</td>
					<td style="width:80px;"><strong>联系电话：</strong>	</td>
					<td>
						<input type="text" class="input" name="ev_x4" id="ev_x4" style="width:174px;" />
					</td>
				</tr>
			</table>
		</div>
	</div>

	<div style="text-align:center;padding:11px;width:604px;">
		<input type="hidden" name="event_type" value="<!--{$event_type}-->" />
		<input type="submit" style="height:40px; width:94px;" value="发起悬赏令" />
	</div>

</form>
</div>

<!--{/if}-->


<script type="text/javascript">
//显示群组时候的
coreTypeJs = <!--{$json_core_type}--> ;

showCoreSelect('selectTypeTop','ev_info') ;
setCoreSelect('<!--{$upid}-->','<!--{$gets['fieldid']}-->','selectTypeTop','ev_info');
</script>

<!--{/if}-->



<!--{template footer}-->